﻿#parse("/user/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<!--Mainleft-->
<div id="Mainleft">
#parse("/user/inc/part-personInfo.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-articalClassify.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-reviewPhoto.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-photo.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-photodir.htm")
<div class="clearfix"></div>
#parse("/user/inc/part-frindlink.htm")
<div class="clearfix"></div>
	<div class="content">
	<span class="text martop1">最新留言</span>
		<div id="NewMessage">
        	<ul>
				<li>正在加载...</li>
            </ul>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="content">
	<span class="text martop1">最新评论</span>
		<div id="NewReview">
        	<ul>
				<li>正在加载...</li>
            </ul>
		</div>
	</div>
	<div class="clearfix"></div>
</div>
<!--Mainleft End-->
<!--Mainright-->
<div id="Mainright">
<script>
function fontZoom(size){
document.getElementById('content').style.fontSize=size+'px'
}
function doCheckForm()
{
if(EditForm.inputuser.value=="")
{
alert("留言人姓名不能为空!");
return false;
}
if(EditForm.content.value=="")
{
alert("评论内容不能为空!");
return false;
}
return true;
}
function doReview(username){
	document.getElementById("content").value="回复"+username+"：";
	var esrc = document.getElementById("content"); 
    if(esrc==null){ 
      esrc=event.srcElement; 
     } 
    var rtextRange =esrc.createTextRange(); 
    rtextRange.moveStart('character',esrc.value.length); 
    rtextRange.collapse(true); 
    rtextRange.select(); 
}
function gotoPage(n)
{
	ListForm.page.value=n;
	ListForm.submit();
	return false;
}
</script>


<div id="detail" class="text">图片评论</div>
<h2><a href="/$!blog.domain$!obj.htmlUrl">原图：$!obj.title</a></h2>
 #foreach( $info in $list)

<ul class="liuyanIndex" style="width:640px;">
	<li>评论人:$!info.inputuser 发表时间：$!CommUtil.formatDate('yyyy-MM-dd HH:mm:ss',$!info.inputtime)</li>
	<li class="end" >$!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.content))<a href="#" onClick="doReview('$!info.inputuser')">回复</a></li>
</ul>
#end
<div class="flipIndex">
共 $!rows 条信息 当前第 $!page/$!pages 页 每页 $!pageSize 条$!gotoPageHTML
</div>

<table cellspacing=0 cellpadding=0  bgcolor="white" align=center border=0>
             <form name=EditForm onSubmit="javascript:return doCheckForm();"
				action=blogReview.do method=post>
				<input type=hidden name="parameter" value="post">
				<input type=hidden name="parentId" value="$!HtmlUtil.escapeHTMLTag($!obj.cid)">
				<input type=hidden name="type" value="$!HtmlUtil.escapeHTMLTag($!type)">
			
			<tr background="/images/dc_img13.gif">
				<td height=25 colspan=2>
					<span class=font06><img src="/images/dc_img14.gif">
						我要评论</span>
				</td>
			</tr>
			
		
			<tr>
				<td align=right width="10%" height=22>
					<span class=font05>* </span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：
				</td>
				<td width="76%">
					<input name=inputuser class=line01 id="inputuser" size=26
						maxlength=50 value="$!HtmlUtil.escapeHTMLTag($!currentUser.userName)" >
				</td>
			</tr>
			<tr>
				<td align=right height=22 valign="top">
					<span class="font05">* </span>正&nbsp;&nbsp;&nbsp;&nbsp;文：
				</td>
				<td height=22><textarea name=content class=line01 id="content"
						style="WIDTH: 90%; HEIGHT: 120px"></textarea>
					
				</td>
			</tr>
			<tr align="center">
				<td colspan=2 height=30>
				
					<input class=input type=submit value="提 交" name=Submit>
					&nbsp;&nbsp;&nbsp;
					<input class=input type=reset value="重 写" name=reset>
				
				</td>
			</tr>
			
			</form>


</table>
</div>
<!--Mainright End-->
<div class="clearfix"></div>
#parse("/user/inc/bottom.htm")
		<span style="display:none">
<script language="JavaScript" type="text/javascript" src="/blogUser.do?parameter=visitCount&cid=$!HtmlUtil.escapeHTMLTag($blog.cid)"></script>
</span>
<form name="ListForm" action="" method="post">
<input type="hidden" name="parameter" value="show" />
<input type="hidden" name="type" value="photo" />
<input type="hidden" name="pid" value="$!obj.cid" />
<input type="hidden" name="pageSize" value="$!pageSize" />
<input type="hidden" name="page" value="$!page" />
</form>
</div>
</div>
</body>
</html>
